﻿<%@ Page Title="" Language="C#" MasterPageFile="~/__Page.master" AutoEventWireup="true" CodeBehind="HotelList.aspx.cs" Inherits="simpleHotel.Web.HotelList" %>
<%@ Register Src="~/UserControls/ucHotelItem.ascx" TagPrefix="uc" TagName="HotelItem" %>

<asp:Content ID="Content1" ContentPlaceHolderID="placeCenterContent" runat="server">
 <div class="check">
     <div class="content"><h3>Kết quả tìm kiếm</h3></div>

       <div>
        <table style="width:100%">
            <tr>
                <td style="width:20%">Tổng số:&nbsp;<asp:Label ID="lblHotelCount" runat="server"></asp:Label> </td>
                <td style="width:36%">Giá phòng:&nbsp;
                    <asp:DropDownList ID="ddlPrice" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPrice_SelectedIndexChanged">
                        <asp:ListItem Text="Sắp xếp" Value="0"></asp:ListItem>
                        <asp:ListItem Text="Tăng dần" Value="1"></asp:ListItem>
                        <asp:ListItem Text="Giảm dần" Value="2"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td style="width:37%" align="right">Loại khách sạn:&nbsp;<asp:DropDownList ID="ddlRate" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlRate_SelectedIndexChanged"></asp:DropDownList></td>
            </tr>
            <tr><td colspan="4">&nbsp;</td></tr>
        </table>
    </div>

    <asp:Repeater ID="rpHotel" runat="server">
        <ItemTemplate>
            <div class="item">
                <uc:HotelItem runat="server" ID="ucHotelItem" />    	    
            </div>
        </ItemTemplate>
    </asp:Repeater>

    <div>
        <ul id="pagination-flickr">
            <asp:Repeater ID="rptPages" Runat="server">
                <ItemTemplate>
                    <li <%# DisplayPager(Container.DataItem.ToString()) %>>
                        <asp:LinkButton ID="btnPage"
                                        CommandName="Page"
                                        CommandArgument="<%# Container.DataItem %>"
                                        Runat="server"><%# Container.DataItem %>
                        </asp:LinkButton>
                    </li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
   </div>

     </div>
</asp:Content>
